/*
 * 
 *
 * 
 */
package com.hboxs.asl.dao;

import com.hboxs.asl.entity.Member;
import com.hboxs.asl.entity.YiYuanTrade;

/**
* Dao - 支付查看答案
*/
public interface YiYuanTradeDao extends BaseDao<YiYuanTrade, Long> {

    /**
     * 根据订单编号查找
     * @param sn
     * @return
     */
    YiYuanTrade findBySn(String sn);

    /**
     * 判断用户是否购买
     * @param member
     * @param questionId
     * @return
     */
    long isPay(Member member, Long questionId);

}
